package entity;

import annotation.Column;
import annotation.Id;

public class MobileCard {
    @Id
    @Column(name = "card_number")
    private String cardNubmber;
    @Column(name="user_name")
    private String userName;
    @Column(name="password")
    private String passWord;
    @Column(name = "consum_amount")
    private double consumAmount;//消费金额=套餐费+实际消费数
    @Column(name="money")
    private double money;//账户金额（当前余额）
    @Column(name="real_talk_time")
    private int realTalkTime;//通话时间
    @Column(name="real_sms_count")
    private int realSMSCCount;//短信条数
    @Column(name="real_flow")
    private int realFlow;//上网流量
    @Column(name="type")
    private Integer scrPakage;//选择套餐(1、话痨 2、网虫 3、超人）


    public MobileCard() {
    }

    public MobileCard(String cardNubmber, String userName, String passWord, Integer scrPakage) {
        this.cardNubmber = cardNubmber;
        this.userName = userName;
        this.passWord = passWord;
        this.scrPakage = scrPakage;
    }

    public MobileCard(String cardNubmber, String userName, String passWord, Integer scrPakage, double consumAmount, double money, int realTalkTime, int realSMSCCount, int realFlow) {
        this.cardNubmber = cardNubmber;
        this.userName = userName;
        this.passWord = passWord;
        this.scrPakage = scrPakage;
        this.consumAmount = consumAmount;
        this.money = money;
        this.realTalkTime = realTalkTime;
        this.realSMSCCount = realSMSCCount;
        this.realFlow = realFlow;
    }

    public String getCardNubmber() {
        return cardNubmber;
    }

    public void setCardNubmber(String cardNubmber) {
        this.cardNubmber = cardNubmber;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassWord() {
        return passWord;
    }

    public void setPassWord(String passWord) {
        this.passWord = passWord;
    }

    public Integer getScrPakage() {
        return scrPakage;
    }

    public void setScrPakage(Integer scrPakage) {
        this.scrPakage = scrPakage;
    }

    public double getConsumAmount() {
        return consumAmount;
    }

    public void setConsumAmount(double consumAmount) {
        this.consumAmount = consumAmount;
    }

    public double getMoney() {
        return money;
    }

    public void setMoney(double money) {
        this.money = money;
    }

    public int getRealTalkTime() {
        return realTalkTime;
    }

    public void setRealTalkTime(int realTalkTime) {
        this.realTalkTime = realTalkTime;
    }

    public int getRealSMSCCount() {
        return realSMSCCount;
    }

    public void setRealSMSCCount(int realSMSCCount) {
        this.realSMSCCount = realSMSCCount;
    }

    public int getRealFlow() {
        return realFlow;
    }

    public void setRealFlow(int realFlow) {
        this.realFlow = realFlow;
    }

    @Override
    public String toString() {
        return "MobileCard{" +
                "cardNubmber='" + cardNubmber + '\'' +
                ", userName='" + userName + '\'' +
                ", passWord='" + passWord + '\'' +
                ", consumAmount=" + consumAmount +
                ", money=" + money +
                ", realTalkTime=" + realTalkTime +
                ", realSMSCCount=" + realSMSCCount +
                ", realFlow=" + realFlow +
                ", scrPakage=" + scrPakage +
                '}';
    }
}
